﻿using Abp.Application.Services.Dto;
using System;
using System.ComponentModel.DataAnnotations;

namespace FutureApp.Cms.Dto
{
    /// <summary>
    /// 修改文章输入参数Dto
    /// </summary>
    public class UpdateArticleInput : EntityDto<Guid>
    {
        /// <summary>
        /// 标题
        /// </summary>
        [StringLength(Article.MaxTitleLength)]
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [StringLength(Article.MaxContentLength)]
        public string Content { get; set; }

        /// <summary>
        /// 链接
        /// </summary>
        [StringLength(Article.MaxUrlLength)]
        [DataType(DataType.Url)]
        public string Url { get; set; }

        /// <summary>
        /// 图片Id
        /// </summary>
        public Guid? PictureId { get; set; }

        /// <summary>
        /// 分类
        /// </summary>
        [StringLength(Article.MaxGroupLength)]
        public string Group { get; set; }
    }
}
